package com.njworkorder.Mapper;

import com.njworkorder.Entity.SysVisits;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
* @author iron
* @description 针对表【sys_visits】的数据库操作Mapper
* @createDate 2025-04-01 13:34:40
* @Entity com.njworkorder.Entity.SysVisits
*/
public interface SysVisitsMapper extends BaseMapper<SysVisits> {
    @Update("UPDATE sys_visits SET visits = visits + 1 WHERE publish_time = #{publishTime}")
    int incrementField(@Param("publishTime") String publishTime);
}




